package com.zfzs.post.modules.common.domain;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author wq
 * @date 2019/10/16 11:34
 * @description
 */
@Data
@Document(collection = "agent_tree")
public class AgentTree {
    //id
    private String id;
    //代理商id
    private Long agentId;
    //上级id
    private Long parent;
    //所有上级拼接的字符串,逗号分割 eg:"10000,100001"
    private String path;

}
